Common mistakes when initializing Apollo's local state with default data

Jun 25, 2019

Handling local state with Apollo can be quite verbose. You might think you did everything correctly but still, your query returns an empty object without any warning or error. The first problems can already occur when you initialize the Apollo cache with default data. If you get it right immediately…

4 ways to handle local state when using Apollo and GraphQL

May 29, 2019

There are a lot of options for state-management in the React eco-system. Using Apollo and GraphQL is a great way to handle server-side data with little boilerplate. But the community is still young and there often has not been established a best practice yet. The question here is how to handle…

Client-side state management with the Apollo client directive

May 26, 2019

Why should I use yet another tool for managing local state when I already use Apollo and GraphQL? Unfortunately handling client-side state using the @client is still a mystery for many. The otherwise great Apollo docs are unclear in this regard and debugging can be very frustrating if you get…

Combining server-side data and local state with Apollo client directive

May 26, 2019

Apollo and GraphQL are great. But managing client-side state in Apollo can be horribly verbose. The docs are unclear and the community's feedback, in general, is not very positive. So you might not even consider using Apollo for local state management. At the same time, it would be great to have a…